<template>
	<div>
		<!-- <so-header :seller="headerTitle"></so-header> -->
		<setHeader :title="headerTitle"></setHeader>
		<div class="pagecontent" style="background-color: #fff;">
			<div class="main-create-success">
				<img src="../common/images/succ.png">
				<h3>创建成功</h3>
				<p>请上传资料实名认证</p>
				<div class="el-circle-div">
					<div class="btn_middle_red btn-middle" @click="NextStep">
						<button>实名验证</button>
					</div>
					<div class="btn_middle_red btn-middle" @click="JumpCenter">
						<button>完成</button>
					</div>
				</div>
			</div>
		</div>
		<!-- <mt-button type="default" class="el-short-button" style="float:left"  @click="NextStep">实名验证</mt-button>
		<mt-button type="default" class="el-short-button" style="float:right" @click="JumpCenter">完成</mt-button> -->
	</div>
</template>
<script>
import setHeader from '../public/setHeader.vue';
import { MessageBox } from 'mint-ui';


export default {
	data() {
      return {
      	headerTitle:'创建企业',
        circlename: '',
        userInfo:'',
        companyId:''
      };
    },
    components: {
      setHeader,
		},
    created() {
      let that = this;
      that.userInfo = window.localStorage.getItem('userInfo');
      that.userInfo = JSON.parse(that.userInfo);
    },
    mounted() {
    // 	let that = this;
    // 	var a = Promise.resolve(this.getUserInfo())
		// a.then(
		// 	function (result) { 
		// 	that.userInfo = result;
		// })
		this.companyId = this.$route.query.companyId;
		this.companyName = this.$route.query.companyName;
      //console.log(this.userInfo);
    },
    methods:{
    	NextStep:function(){
    		let that = this;
    		let companyId = this.companyId;
    		let companyName = this.companyName;
    		
    		this.$router.push({path: '/Certification', query: {companyId: companyId,companyName: companyName}}); 
    	},
    	//完成
    	JumpCenter:function(){
    		this.$router.push({path: '/userCenter'}); 
    		
    	},
    }
}

</script>

<style >

.el-circle-div{
	display: flex;
	justify-content: space-between;
	text-align: center;
	margin: 0.2rem auto;
}
.btn-middle {
	flex: 1;
}
.btn-middle button {
	width: 2.4rem !important;
	height: 0.8rem !important;
	font-size: 0.3rem !important;
}
/* 创建完成 */
.main-create-success {
	margin-top: 2rem;
	text-align: center;
}
.main-create-success img {
	width: 2rem;
}
.main-create-success h3 {
	font-size: 0.36rem;
	color: #e50838;
	margin: 0.2rem;
}
.main-create-success p {
	font-size: 0.34rem;
	color: #666;
}

</style>